package com.wrs.examsystem.service;

import com.wrs.examsystem.entity.Result.R;
import com.wrs.examsystem.entity.Student;
import com.wrs.examsystem.entity.Topic;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wrs.examsystem.entity.User;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 王荣升
 * @since 2024-05-15
 */
public interface TopicService extends IService<Topic> {
//    Topic findDetailById(Integer topicId);
    @Transactional(rollbackFor = Exception.class)
    public R deleteTopicIdById(Integer topicId);

    public R insertTopic(Topic topic);
    public R updateTopic(Topic topic);
}
